<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{LANG_GLOBAL:Version}</title>
<link href="html/css/css.css" rel="stylesheet" type="text/css" />
<script Language="JavaScript" src="html/js/functions.js"></script>
<script language="javascript" src="html/js/rlselectdate.js"></script>
<script language="javascript">
var oCalendarEn=new PopupCalendar("oCalendarEn");    //初始化控件时,请给出实名称如:oCalendarEn
oCalendarEn.Init();

var oCalendarChs=new PopupCalendar("oCalendarChs");    //初始化控件时,请给出实例名称:oCalendarChs
oCalendarChs.weekDaySting=new Array("星期一","星期二","星期三","星期四","星期五","星期六","星期天");
oCalendarChs.monthSting=new Array("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
oCalendarChs.oBtnTodayTitle="今天";
oCalendarChs.oBtnCancelTitle="关闭";
oCalendarChs.Init();
</script>

<script type="text/javascript">

function checkForm()
{
	if($('Name').value == '')
	{
		msg_box('链接标题没有填写');
		$('Name').focus();
		return false;
		
	}
	
	if($('URL').value == 'http://' || $('URL').value == '')
	{
		msg_box('链接地址没有填写');
		$('URL').focus();
		return false;
		
	}
	
}
			
</script>

</head>

<body>

<if $Msg>
<div id="msg"><img src="html/images/information.gif" width="16" height="16" align="absmiddle" /> [$Msg]</div>
</if>

<form action="" method="post" enctype="multipart/form-data" name="form" id="form" style="margin:0px" onsubmit=" return checkForm();">
<input type="hidden" name="Id" value="[$LinkInfo.Id]" />
<div class="form_box">
	<div class="header">
    <img src="html/images/ad_add.gif" width="16" height="16" align="absmiddle" />&nbsp;修改友情链接
	</div>
    <div class="box">
    	<div class="text">
    	链接标题:
    	</div>
        <div class="input">
    		<input name="Name" type="text" id="Name" value="[@htmlspecialchars($LinkInfo.Name)]" />
			
       	</div>
        <div style="clear:both"></div>
    </div>
	 <div class="box">
    	<div class="text">
    	链接地址:
    	</div>
        <div class="input">
    		<input name="URL" type="text" id="URL" value="[@htmlspecialchars($LinkInfo.URL)]" />
				
       	</div>
        <div style="clear:both"></div>
    </div>
    
    <div class="box">
    	<div class="text">
    	显示状态:
    	</div>
        <div class="input">
            <select name="State" id="State">
            <option value="1">正常</option>
            <option value="-1">禁用</option>
            </select>
            <script language="javascript">SelectOption('State',[@htmlspecialchars($LinkInfo.State)],1);</script>
       	</div>
        <div style="clear:both"></div>
    </div>
    
    <div class="box">
    	<div class="text">
    	连接类型:
    	</div>
        <div class="input">
    		
            <select name="Type" id="Type">
                <option value="1">文字类型</option>
                <option value="2">LOGO连接</option>
            </select>
		<script language="javascript">SelectOption('Type',[@htmlspecialchars($LinkInfo.Type)],1);</script>
       	</div>
        <div style="clear:both"></div>
    </div>
    
	<div class="box">
    	<div class="text">
    	LOGO:
    	</div>
        <div class="input">
    		<input name="Logo" type="text" id="Logo" value="[@htmlspecialchars($LinkInfo.Logo)]" />
       	</div>
        <div style="clear:both"></div>
    </div>
    <!--
	<div class="box">
    	<div class="text">开始时间:
    </div>
        <div class="input">
    		<input name="StartDate" type="text" id="StartDate" onclick="getDateString(this,oCalendarChs)"  value="[@htmlspecialchars($LinkInfo.StartDate)]" readonly />
       	</div>
        <div style="clear:both"></div>
    </div>
	<div class="box">
    	<div class="text">结束时间:
    </div>
        <div class="input">
    		<input name="EndDate" type="text" id="EndDate" value="[@htmlspecialchars($LinkInfo.EndDate)]" onclick="getDateString(this,oCalendarChs)" readonly />
       	</div>
        <div style="clear:both"></div>
    </div>
    -->
   <div class="box">
    	<div class="text">排序:
    </div>
        <div class="input">
    		<input name="Top" type="text" id="Top" value="[@htmlspecialchars($LinkInfo.Top)]" />
       	</div>
        <div style="clear:both"></div>
    </div>
    
    	<div class="box">
    	<div class="text">调用标识:
    </div>
        <div class="input">
    		<input name="Mark" type="text" id="Mark" value="[@htmlspecialchars($LinkInfo.Mark)]" />
       	</div>
        <div style="clear:both"></div>
    </div>
    	<div class="box">
    	<div class="text">备注信息:
    </div>
        <div class="input">
    		<textarea name="Intro" id="Intro">[@htmlspecialchars($LinkInfo.Intro)]</textarea>
       	</div>
        <div style="clear:both"></div>
    </div>
</div>
<div class="form_box_bottom">
<input type="image" src="html/images/submit.gif" id="submit" align="absmiddle" border="0" title="保存" /></a>
<a href="javascript:history.go(-1);"><img src="html/images/msg_cancel.gif" align="absmiddle" border="0" title="返回" /></a>
</div>
</form>
</body>
</html>
